package cn.dakaqi.pingan.services;

import cn.dakaqi.entities.PinganOpen;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @author chunyang on 2016/4/19.PinganOpenRecord
 */
public interface PinganOpenDao extends PagingAndSortingRepository<PinganOpen, Long>, JpaSpecificationExecutor<PinganOpen>
{
    PinganOpen findByMobileAndIdCard(String mobile, String idCard);

    PinganOpen findByIdCard(String idCard);

    PinganOpen findByCardNum(String cardNum);

    PinganOpen findByCardNumAndStatus(String cardNum, int status);

    PinganOpen findByVolunteerCode(String volunteerCode);

    PinganOpen findByVolunteerCodeAndStatus(String volunteerCode, int status);
}
